diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/qna/[id]/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/qna/[id]/page.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/qna/[id]/page.tsx b/app/[lng]/evcp/(evcp)/qna/[id]/page.tsx new file mode 100644 index 00000000..93b948c6 --- /dev/null +++ b/app/[lng]/evcp/(evcp)/qna/[id]/page.tsx @@ -0,0 +1,13 @@ +import { getQnaById } from "@/lib/qna/service"; +import QnaDetail from "@/lib/qna/table/qna-detail"; +import { notFound } from "next/navigation"; + +export default async function QnaDetailPage({ params }: { params: { id: string } }) { + const question = await getQnaById(params.id); + + if (!question) { + notFound(); + } + + return <QnaDetail question={question} />; +}
\ No newline at end of file |
